import request from '../util/request'

const baseUrl = process.env.NODE_ENV === 'production' ? '' : '/vehicleMap'

export function getLcMonitorInfoApi(id){
    return request({
      url:baseUrl+"/lcmonitorinfo/getLcMonitorInfoByparkfieldId",
      method:"get",
      params:{
        parkfieldId : id
      }
    })
}

export function setLcMonitorInfoApi(data){
  return request({
    url:baseUrl+"/lcmonitorinfo/setMonitorinfo",
    method:"get",
    params:{
      params : JSON.stringify(data)
    }
  })
}

export function delLcMonitorInfoApi(id){
  return request({
    url:baseUrl+"lcmonitorinfo/delete",
    method:"get",
    params:{
      parkfieldId : id
    }
  })
}

export function savePicByparkfieldId(id){
  return request({
    url:baseUrl+"lcmonitorinfo/savePicByparkfieldId",
    method:"get",
    params:{
      parkfieldId : id
    }
  })
}